package com.icim.util;

import java.io.PrintWriter;
import java.io.StringWriter;

/**   
 * @Title: LogUtil.java
 * @Package com.util
 * @Description: TODO(添加描述)
 * @author Lynn.Sea
 * @date 2014-2-14 上午10:44:28    
 * @version V1.0   
 */
public class LogUtil {
	public static String stackTraceToString(Exception e) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw, true);
		e.printStackTrace(pw);
		pw.flush();
		sw.flush();
		return sw.toString();
	}
}
